<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
<title>elementSendKeys. seleniumPipes 0.3.3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="">

<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/highlight.css" rel="stylesheet">
<link href="css/staticdocs.css" rel="stylesheet">

<!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    tex2jax: {
      inlineMath: [ ['$','$'], ["\\(","\\)"] ],
      processEscapes: true
    }
  });
</script>
<script type="text/javascript"
  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
  </head>

  <body>
    <div class="navbar">
  <div class="navbar-inner">
    <div class="container">
      <a class="brand" href="index.html">seleniumPipes 0.3.3</a>
      <div class="nav">
        <ul class="nav">
          <li><a href="index.html">Home</a></li>
          <li><a href="reference.html">Reference</a></li>
        </ul>
      </div>
    </div>
  </div>
</div>


    <div class="container">
      <header>
        
      </header>
      
      <h1>Send a sequence of key strokes to an element.</h1>

<div class="row">
  <div class="span8">
    <h2>Usage</h2>
    <pre><span class="functioncall"><a href='elementSendKeys.html'>elementSendKeys</a></span><span class="keyword">(</span><span class="symbol">webElem</span><span class="keyword">,</span> <span class="symbol">...</span><span class="keyword">)</span></pre>
    
    <h2>Arguments</h2>
    <dl>
      <dt>webElem</dt>
      <dd>An object of class &quot;wElement&quot;. A web Element object see <code><a href='wbElement.html'>wbElement</a></code>.</dd>
      <dt>...</dt>
      <dd>keys to send the element. <code>seleniumPipes</code> includes mappings to unicode keys see <code><a href='selKeys.html'>selKeys</a></code>. To use one of this name the string using key. See examples.</dd>
    </dl>
    
    <div class="Value">
      <h2>Value</h2>

      <p><dl>
invisible(webElem): An object of class &quot;wElement&quot; is invisibly returned.
   A webElement object see <code><a href='wbElement.html'>wbElement</a></code>. This allows for chaining from this function to
   other functions that take such an object as an argument. See examples for further details.
</dl></p>

    </div>

    <div class="Description">
      <h2>Description</h2>

      <p><code>elementSendKeys</code> The elementSendKeys function scrolls into view the form control element and then sends the provided keys to the element. In case the element is not keyboard interactable, an element not interactable error is returned.</p>

    </div>
    
    <h2 id="examples">Examples</h2>
    <pre class="examples"><div class='input'><span class="comment">## Not run: ------------------------------------</span>
<span class="comment">#   # start a brower</span>
<span class="comment">#   remDr &lt;- remoteDr()</span>
<span class="comment">#   remDr %&gt;% go("http://www.google.com/ncr")</span>
<span class="comment"># </span>
<span class="comment">#   queryBox &lt;- remDr %&gt;% findElement("name", "q")</span>
<span class="comment"># </span>
<span class="comment">#   # send text to the query box</span>
<span class="comment">#   queryBox %&gt;% elementSendKeys("Some ", "text")</span>
<span class="comment"># </span>
<span class="comment">#   # clear the query box</span>
<span class="comment">#   queryBox %&gt;% elementClear</span>
<span class="comment"># </span>
<span class="comment">#   # get the search button</span>
<span class="comment">#   searchBtn &lt;- remDr %&gt;% findElement("name", "btnG")</span>
<span class="comment">#   # send text to query box</span>
<span class="comment">#   queryBox %&gt;% elementSendKeys("R project")</span>
<span class="comment"># </span>
<span class="comment">#   # click the search button</span>
<span class="comment">#   searchBtn %&gt;% elementClick</span>
<span class="comment"># </span>
<span class="comment">#   # close browser</span>
<span class="comment">#   remDr %&gt;% deleteSession</span>
<span class="comment">## ---------------------------------------------</span></div></pre>
  </div>
  <div class="span4 sidebar">
    <!-- <ul>
      <li>elementSendKeys</li>
    </ul>
    <ul>
      
    </ul> -->

    <h2>See also</h2>
      <p>Other elementInteraction functions: <code><a href='elementClear.html'>elementClear</a></code>,
  <code><a href='elementClick.html'>elementClick</a></code></p>

    


  </div>
</div>
      
      <footer>
      <p class="pull-right"><a href="#">Back to top</a></p>
<p>Built by <a href="https://github.com/hadley/staticdocs">staticdocs</a>. Styled with <a href="https://getbootstrap.com/2.0.4/">bootstrap</a>.</p>
      </footer>
    </div>
  </body>
</html>